﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PC.PickleJar.Configuration
{
	public class PickleJarSection : ConfigurationSection
	{
		public static readonly String SectionName = "pickleJar";

		[ConfigurationProperty("validators", IsDefaultCollection = false)]
		[ConfigurationCollection(typeof(ValidatorElementCollection))]
		public ValidatorElementCollection Validators
		{
			get
			{
				return (ValidatorElementCollection)base["validators"];
			}
		}

		[ConfigurationProperty("onValidationFailure")]
		public OnValidationFailureElement OnValidationFailure
		{
			get
			{
				return (OnValidationFailureElement)base["onValidationFailure"];
			}
		}
	}
}
